package cn.bookcycle.requestroom.ConstantData;

/**
 * 业务常量
 *
 * @author liufenglin
 * @date 2018年3月4日
 */
public class BusinessConstant {
	public static final String UTF8 = "UTF-8";
	
	public static final String TYPE = "type";
	
	public static final String USER_ID = "userId";
	
	public static final String ROOM_ID = "roomId";
	
	/** 收费 */
	public static final String FEE = "fee";
	
	/** 免费 */
	public static final String FREE = "free";
	
	public static final String DATE = "date";
	
	public static final String DURATION = "duration";
	
	/** 用户没有免费看房机会 */
	public static final String FREE_CHANCE_NOT_ENOUGH = "{\"status\":\"40007\"}";
	
	/** 用户申请免费看房成功 */
	public static final String SUCCESS_FREE = "{\"status\":\"40001\"}";
	
	/** 用户申请付费看房成功 */
	public static final String SUCCESS_FEE = "{\"status\":\"40003\"}";
	
	/** 房间不为空 */
	public static final String ROOM_FILL = "{\"status\":\"40006\"}";
	
	/** 用户申请免费看房失败 */
	public static final String FAIL = "{\"status\":\"40005\"}";
	
	/** 由必须参数构成的字符串 */
	public static final String NECESSARY_PARA_STR = "userId&roomId&type&date&duration";
	
	/** 系统授予用户总的免费看房次数 */
	public static int TOTAL_FREE = 20;
	
	/** 开锁数据加密密钥 */
	public static String OPEN_LOCK_DATA_KEY = "1234fghjnmlkiuhA";
	
	public static String OPEN_CMD = "open";
	
	public static String CLOSE_CMD = "close";
	
	public static String OPEN_LOCK_ID = "openLockId";
	
	public static String CMD = "cmd";
	
	public static String TIME_STAMP = "timeStamp";
}
